﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Net.Nntp
{
    /// <summary>Represents a QUIT command to be sent to an NNTP server.</summary>
    internal sealed class QuitCommand : SingleLineCommand<IResponse>
    {
        private static readonly string[] SuccessResponseCodes = { "205" };

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        internal QuitCommand() : base("QUIT", 2, SuccessResponseCodes)
        {
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>See <see cref="SingleLineCommandBase{T, U}.CreateResponse"/>.</summary>
        protected sealed override IResponse CreateResponse(ResponseStream responseStream)
        {
            return null;
        }
    }
}
